﻿<Serializable()> _
Public Class EperfilCrediticio

#Region "           Atributos                       "
    Private _idPerfilCrediticio As Int32
    Private _descPerfilCrediticio As String
    Private _idUsuario As Int32
    Private _estado As String
    Private _descEstado As String

#End Region

#Region "           Propiedades                     "
    Public Property idPerfilCrediticio() As Int32
        Get
            Return _idPerfilCrediticio
        End Get
        Set(ByVal value As Int32)
            _idPerfilCrediticio = value
        End Set
    End Property
    Public Property descPerfilCrediticio() As String
        Get
            Return _descPerfilCrediticio
        End Get
        Set(ByVal value As String)
            _descPerfilCrediticio = value
        End Set
    End Property
    Public Property idUsuario() As Int32
        Get
            Return _idUsuario
        End Get
        Set(ByVal value As Int32)
            _idUsuario = value
        End Set
    End Property
    Public Property estado() As String
        Get
            Return _estado
        End Get
        Set(ByVal value As String)
            _estado = value
        End Set
    End Property
    Public Property descEstado() As String
        Get
            Return _descEstado
        End Get
        Set(ByVal value As String)
            _descEstado = value
        End Set
    End Property
#End Region

#Region "           Propiedades Avanzadas           "

#End Region

#Region "           Contructores                    "
    Public Sub New()

    End Sub
    Public Sub New(ByVal idPerfilCrediticio As Int32, ByVal descPerfilCrediticio As String)
        Me.idPerfilCrediticio = idPerfilCrediticio
        Me.descPerfilCrediticio = descPerfilCrediticio
    End Sub
    Public Sub New(ByVal idPerfilCrediticio As Int32, ByVal descPerfilCrediticio As String, ByVal estado As String)
        Me.idPerfilCrediticio = idPerfilCrediticio
        Me.descPerfilCrediticio = descPerfilCrediticio
        Me.estado = estado
        Me.descEstado = IIf(estado = 1, "HABILITADO", "DESHABILITADO")
    End Sub
#End Region

End Class
